<script>
    var arr = [1, 2, 3, 4, 5]
    arr.splice(1, 1)
    console.log(arr);
</script>